package com.ftg.learn.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 产品的分类和属性的关系表，用于设置分类筛选条件（只支持一级分类）
 * </p>
 *
 * @author mallCommon
 * @since 2022-04-19
 */
@TableName("pms_product_category_attribute_relation")
public class PmsProductCategoryAttributeRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "product_category_attribute_relation_id", type = IdType.AUTO)
    private Long productCategoryAttributeRelationId;

    private Long productCategoryId;

    private Long productAttributeId;

    public Long getProductCategoryAttributeRelationId() {
        return productCategoryAttributeRelationId;
    }

    public void setProductCategoryAttributeRelationId(Long productCategoryAttributeRelationId) {
        this.productCategoryAttributeRelationId = productCategoryAttributeRelationId;
    }
    public Long getProductCategoryId() {
        return productCategoryId;
    }

    public void setProductCategoryId(Long productCategoryId) {
        this.productCategoryId = productCategoryId;
    }
    public Long getProductAttributeId() {
        return productAttributeId;
    }

    public void setProductAttributeId(Long productAttributeId) {
        this.productAttributeId = productAttributeId;
    }

    @Override
    public String toString() {
        return "PmsProductCategoryAttributeRelation{" +
            "productCategoryAttributeRelationId=" + productCategoryAttributeRelationId +
            ", productCategoryId=" + productCategoryId +
            ", productAttributeId=" + productAttributeId +
        "}";
    }
}
